/***************************************************
> Copyright (C) 2024 ==LENA== All rights reserved.
> File Name: 7.2hw1.c
> Author: lena
> Mail:lena_li@126.com
> Created Time: 2024年07月02日 星期二 02时15分18秒
***************************************************/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc,const char* argv[])
{
	char num=0;
	int big=0,little=0,num1=0,other=0;
	while(1){
		scanf("%c",&num);
		if(num>='A'&&num<='Z'){
			big++;
		}else if(num>='a'&&num<='z'){
			little++;
		}else if(num>='0'&&num<='9'){
			num1++;
		}else{
			other++;
		}
		if(num=='q'){
			break;
		}
	}
		printf("big=%d\n little=%d\n num1=%d\n other=%d\n",big,little,num1,other);
		
	return 0;
}
